//
//  OosTagQuery.m
//  oos4ios
//
//  Created by Pablo Gonzalez on 4/13/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import "OosTagQuery.h"
#import <oos4ios/ApiUrlProvider.h>


@implementation OosTagQuery

+ (OosTagQuery *)queryFromUserSlug:(NSString *)slug
{
    NSString *urlString = [[ApiUrlProvider provider].userTags getUrl:slug, nil];
    NSURL *url = [NSURL URLWithString:urlString];
    OosTagQuery *query = [[OosTagQuery alloc] initWithFeedURL:url];
    return [query autorelease];
}

+ (OosTagQuery *) queryFromMe
{
    NSString *urlString = [ApiUrlProvider provider].userTags.url;
    NSURL *url = [NSURL URLWithString:urlString];
    OosTagQuery *query = [[OosTagQuery alloc] initWithFeedURL:url];
    return [query autorelease];
}

@end
